package top.kwseeker.spring;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import top.kwseeker.spring.config.HelloConfig;
import top.kwseeker.spring.service.HelloService;

public class HelloWorldMain {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(HelloConfig.class);
		HelloService helloService = context.getBean(HelloService.class);
		helloService.hello();
	}
}
